package com.suse.warmstill.controller;

import com.suse.warmstill.common.model.CallResult;
import com.suse.warmstill.entity.TbIndexPicture;
import com.suse.warmstill.mapper.TbIndexPictureMapper;
import com.suse.warmstill.service.IndexPictureService;
import com.suse.warmstill.vo.IndexPitureVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 黄靖
 * @author 2022-11-05 11:13
 * description:
 **/
@RestController
@Api(tags = "微信的 轮播图获取")
@RequestMapping("/wx/pcindexs")
public class WxIndexPictureApi {

    @Resource
    private IndexPictureService indexPictureService;


    @ApiOperation("拿到所有的 图片资源")
    @GetMapping("/list")
    public CallResult listAll() {
        List<IndexPitureVO> list = indexPictureService.listAll();
        return CallResult.success(list);
    }


}
